package edu.sctu.practice.class02.zengguangchuan.test12;

/**
 * Created by lenovo0 on 2015/10/21.
 */
public class Car {
    public int wheel;
    public String color;
    public int weight;
    public int seats;


    public void Car(int wheel, String color, int weight, int seats) {
        this.wheel = wheel;
        this.color = color;
        this.weight = weight;
        this.seats = seats;
    }

    public void putData() {
        System.out.println("wheel:" + wheel + "");
        System.out.println("color:" + color + "");
        System.out.println("weight:" + weight + "");
        System.out.println("seats:" + seats + "");
    }

    public void upSpeed() {
        System.out.println("汽车在加速");
    }

    public void downSpeed() {
        System.out.println("汽车在减速");
    }

    public void stopCar() {
        System.out.println("汽车以停车");
    }

}
